#ifndef __TEACHER_H
#define __TEACHER_H

#include "status.h"
#include "size.h"

#define TEACHER_INIT_CAPCITY        5
#define TEACHER_INCREASE            5

#define TEAACCOUNT_FLAG                 "110" 

#define TEA_INSERT                  1
#define TEA_CHANGE                  2

#define  TEA_IFIND                  1
#define  TEA_FIND                   0

typedef struct Teacher{
    char account[ACCOUNT_SIZE];
    char passwd[PASSWD_SIZE];
    int id;
    char name[NAME_SIZE];
    int age;
}Teacher;

typedef struct TeaManage{
    Teacher* teacher;
    int numOfTea;
    int capcity;
}TeaManage;

status TeaInit(TeaManage* tea);
status TeaInsert(TeaManage* tea,int i);

status TeaChangeMessageById(TeaManage* tea,int id);
status TeaDelById(TeaManage* tea,int id);
status TeaSortById(TeaManage* tea);
status TeaShowAllById(TeaManage* tea,int id);
void TeaShowAllLess(TeaManage* tea);
void TeaShowAll(TeaManage* tea);
status TeaAccountIsExist(TeaManage* tea,char* account,int* index,int ifindOrFind);

#endif
